﻿namespace PhoneProgram;

public class Phone
{
    
    public string Brand { get; set; }       
    public double Weight { get; set; }      
    public long CameraPixel { get; set; }   
    public decimal Price { get; set; }      
    
    
    public void DisplayInfo()
    {
        Console.WriteLine("手机信息如下：");
        Console.WriteLine($"品牌：{Brand}");
        Console.WriteLine($"重量：{Weight}g");
        Console.WriteLine($"后置摄像头像素：{CameraPixel:N0}"); 
        Console.WriteLine($"价格：{Price:C}"); 
        
    }
}